package com.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 患者用户表
 * </p>
 *
 * @author Helen
 * @since 2020-09-09
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@ApiModel(value = "TPatient对象", description = "患者用户表")

public class TPatient {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "patient_id", type = IdType.AUTO)
    private Integer patientId;

    @ApiModelProperty(value = "所属医院、诊所")
    private Integer hospitalId;

    private String name;

    @ApiModelProperty(value = "微信openid")
    private String openid;

    @ApiModelProperty(value = "患者电话")
    private String mobile;

    @ApiModelProperty(value = "修改时间")
    private Integer updateTime;

    @ApiModelProperty(value = " 登录密码")
    private String password;

    @ApiModelProperty(value = "患者性别1男2女")
    private Integer sex;

    private String birthday;

    private String idCard;

    private String mobile1;

    @ApiModelProperty(value = "是否完善信息，0否1已完善")
    private Integer isFinal;

    @ApiModelProperty(value = "最后登录ip")
    private Integer lastLoginIp;

    @ApiModelProperty(value = "最后登录时间")
    private Integer lastLoginTime;

    @ApiModelProperty(value = "地址信息")
    private String address;

    @ApiModelProperty(value = "注册时间")
    private Integer createTime;

    @ApiModelProperty(value = "省区id")
    private Integer provinceId;

    @ApiModelProperty(value = "市区id")
    private Integer cityId;

    @ApiModelProperty(value = "县区id")
    private Integer districtId;

    @ApiModelProperty(value = "过敏信息")
    private String allergyInfo;

    @ApiModelProperty(value = "是否移除 0：正常 1：删除")
    @TableField("is_del")
    private Boolean del;


}
